From: kaf24@firebug.cl.cam.ac.uk Date: Sun, 30 Apr 2006 08:52:13 +0000 (+0100) Subject: Allow architectures to define their own privcmd_mmap() by X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16108^2~42 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8419bc2fd9060e21f00d7e1654a399732b9ae632;p=xen.git Allow architectures to define their own privcmd_mmap() by introducing HAVE_ARCH_PRIVCMD_MMAP. Signed-off-by: Isaku Yamahata --- diff --git a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c index a5b9c73813..1c9c21addd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c @@ -241,6 +241,7 @@ static int privcmd_ioctl(struct inode *inode, struct file *file, return ret; } +#ifndef HAVE_ARCH_PRIVCMD_MMAP static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) { /* DONTCOPY is essential for Xen as copy_page_range is broken. */ @@ -248,6 +249,7 @@ static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) return 0; } +#endif static struct file_operations privcmd_file_ops = { .ioctl = privcmd_ioctl,